#include <stdio.h>
#include <math.h>
#include <iostream>

double f(double x)
{
	return sqrt(0.3 * x*x + 2.3) / (1.8 + sqrt(2*x + 1.6));
}

int main(int argc, char argv[])
{
	int n = 50;
	double a = 0.8;
	double b = 1.6;
	double x = 0.0;
	double result = 0.0;
	double h = (b-a) / n;

	for(int i=0; i<n; i++)
	{
		x = a + (h)*i;
		result += h * f(x);
	}

	printf("Result: %f", result);

	int vtr;
	std::cin >> vtr;

	return 0;
}
